package v1

import (
	"ginblog/api/common/v1/blog"
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/binding"
)

func Register(c *gin.Context) {
	reg := blog.Register{}
	_ = c.ShouldBindBodyWith(&reg, binding.JSON)
	reg.DoRegister(c)
}
